package com.docMan.service;

import java.util.List;

import javax.ws.rs.FormParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import com.docMan.dao.pojo.DocAdmin;

@Path("/docAdmin")
@Produces(MediaType.APPLICATION_JSON)
public interface DocAdminService extends BaseService<DocAdmin> {
	@Path("/getAdmins")
	@POST
	abstract String getAdmins();

	@Path("/saveAdmins")
	@POST
	abstract String saveAdmins(@FormParam("humanIds") List<Integer> humanIds,
			@FormParam("ip")String ip,@FormParam("username") String username, 
			@FormParam("password")String password,@FormParam("port") String port);

	@Path("/saveFtp")
	@POST
	abstract String updateFtp(String ip, String username, String password,
			String port);

	@Path("/getFtp")
	@POST
	abstract String getFtp();
	
	abstract boolean isAdmin();
}
